<%@ page contentType="text/html; charset=utf-8" language="java" %>
<%@ include file="/sys/include/header.jsp" %>
<%@ page import="java.util.*,com.es.business.area.*, com.es.business.province.*"%>

<HTML>
 <HEAD>
  <TITLE> 修改城市 </TITLE>

   <link href="sys/style01/css/table.css" rel="stylesheet" type="text/css" />
   <link href="sys/css/banzu.css" rel="stylesheet" type="text/css" />  

<script type="text/javascript">
 
function save(){			
	if(document.form1.updateCityCode.value==""){
				alert("请输入城市编码!");
				return;
		}
	if(document.form1.updateCityName.value==""){
			alert("请输入城市名称");
			return;
	}
	if(document.form1.updateCityLevel.value==""){
		alert("请输入城市等级");
		return;
	}
	if(document.form1.provinceCode.value==""){
		alert("请选择省区");
		return;
	}
	
	document.form1.submit();
}

function back()
{
	document.form1.action = "business/city/citySearchDo.action";
	document.form1.submit();
}

</script>
 <link href="sys/style01/css/table.css" rel="stylesheet" type="text/css">
 </HEAD>

 <BODY class="ridgeBody">

<form name="form1" method="post" action="business/city/cityModifyDo.action">
  <input type="hidden" name="updateCityId" value="${pBean.cityId}">
<table class=datatable width=50% cellpadding='0' cellspacing='0' border='1' bordercolorDark='white' bordercolorLight='#BEBEBE' >
      <!--DWLayoutTable-->
      <tr >
        <TD height="28" colspan="2"  class="dataTitle">修改城市信息</TD>
    </tr>      
    <tr>
		<td height="26" with="25%" nowrap="nowrap" class="datatr1"><span class="STYLE1"><font color="#FF0000">*</font></span>省份：</td>
		<td height="26" with="25%">
			<select class="selectwidth" name="provinceCode">
				<option value="" selected>请选择</option>
				<c:forEach items="${provinceList}" var="province">
					<option value="${province.provinceCode}" <c:if test="${province.provinceCode==provinceCode}">selected</c:if>>${province.provinceName}</option>	
				</c:forEach>
			</select>
		</td>
	</tr>
	<tr>
        <TD width=30% height="22" valign="top" nowrap class="datatr1"> 城市编码<font color="#FF0000">*</font>：</TD>	
	<TD valign="top" nowrap > 
	      <input name="updateCityCode" type="text" class="input" value="${pBean.cityCode} "/> 	</TD>
 	 </tr>
 	 
 	  <tr>
        <TD width=30% height="22" valign="top" nowrap class="datatr1"> 省名称<font color="#FF0000">*</font>：</TD>	
	<TD valign="top" nowrap > 
	      <input name="updateCityName" type="text" class="input" value="${pBean.cityName}"/> 	</TD>
 	 </tr>
 	 
 	   <tr>
        <TD width=30% height="22" valign="top" nowrap class="datatr1"> 城市级别<font color="#FF0000">*</font>：</TD>	
	<TD valign="top" nowrap > 
	      <input name="updateCityLevel" type="text" class="input" value="${pBean.cityLevel}"/> 	</TD>
 	 </tr>
      <tr>
 	 <td height="26" with="25%" nowrap="nowrap" class="datatr1"><span class="STYLE1"></span>城市群：</td> 
 	 <td height="26" with="25%">
			<select class="selectwidth" name="citysCode"  >
				<option value="" selected>请选择</option>
				<c:forEach items="${cityslist}" var="citys">
					<option value="${citys.citysCode}" <c:if test="${citys.citysCode==citysCode}">selected</c:if>>${citys.citysValue}</option>	
				</c:forEach>
			</select>
		</td>
 	 </tr>
      <tr >
        <TD height="21" colspan="2" valign="top" class="dataTitle">  <input type="button" name="Submit1" value="保存" onClick="save()"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

       <input type="button" name="Submit1" value="返回" onClick="back()"/> </TD>
  	 </tr>

        <%	
        if(request.getAttribute("message")!=null)
        {
        	String message=request.getAttribute("message").toString();
        %>
     	 
     	 <tr>
     	   <td height="2" colspan="4" valign="top"><%=message%></td>

   	   </tr>
     	 
     	 
  		 <%}%>
  </TABLE>
</form>
 </BODY>
</HTML>